package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 资产所有非负责人负责信息对象 asms_own_charge_info
 * 
 * @author yfkj
 * @date 2021-10-21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AsmsOwnChargeInfo
{
    private static final long serialVersionUID = 1L;
    /** 资产所有非负责人负责信息主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long ownChargeInfoId;
    /** 用户主键 */
    @Excel(name = "用户主键")
    @TableField(exist = true)
    @ApiModelProperty(value =  "用户主键")
    private Long userId;
    /** 负责的设备信息(设备类型主键列表) */
    @Excel(name = "负责的设备信息(设备类型主键列表)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "负责的设备信息(设备类型主键列表)")
    private String ownChargeAssetTypes;
    /** 故障报修是否需要审核(0需要、1不需要) */
    @Excel(name = "故障报修是否需要审核(0需要、1不需要)")
    @TableField(exist = true)
    @ApiModelProperty(value =  "故障报修是否需要审核(0需要、1不需要)")
    private Integer isNeedExamine;
    /** 复杂的区域信息 */
    @Excel(name = "复杂的区域信息")
    @TableField(exist = true)
    @ApiModelProperty(value =  "复杂的区域信息")
    private String ownChargeAddressIds;

    @TableField(exist = true)

    private Long ownDeptId;

    public static final String OWN_CHARGE_INFO_ID="own_charge_info_id";
    public static final String USER_ID="user_id";
    public static final String OWN_CHARGE_ASSET_TYPES="own_charge_asset_types";
    public static final String IS_NEED_EXAMINE="is_need_examine";
    public static final String OWN_CHARGE_ADDRESS_IDS="own_charge_address_ids";
    public static final String OWN_DEPT_ID="own_dept_id";

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ownChargeInfoId", getOwnChargeInfoId())
            .append("userId", getUserId())
            .append("ownChargeAssetTypes", getOwnChargeAssetTypes())
            .append("isNeedExamine", getIsNeedExamine())
            .append("ownChargeAddressIds", getOwnChargeAddressIds())
            .toString();
    }
}
